package di

import (
	"github.com/google/wire"
	"week4/configs"
	"week4/internal/dao"
	"week4/internal/service"
)

// NewService 定义injector的函数签名
func NewService(config *configs.DbConfig) (*service.UserService, error) {
	wire.Build(service.MyService, dao.UserSet, configs.MyDb)
	return &service.UserService{}, nil
}
